package com.fqgj.sentry.biz.store.system;

import com.fqgj.common.utils.CollectionUtils;
import com.fqgj.log.factory.LogFactory;
import com.fqgj.log.interfaces.Log;
import com.fqgj.sentry.api.domain.ApiPolicy;
import com.fqgj.sentry.api.domain.HitRule;
import com.fqgj.sentry.api.domain.RiskApiResult;
import com.fqgj.sentry.api.domain.request.Column;
import com.fqgj.sentry.api.domain.request.DataCallback;
import com.fqgj.sentry.api.domain.request.DecisionVo;
import com.fqgj.sentry.biz.store.DecisionDataSave;
import com.google.gson.Gson;
import org.apache.commons.lang.StringUtils;

import java.io.Serializable;
import java.security.NoSuchAlgorithmException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by liupengpeng on 2017/10/16.
 */
public class SystemColumnUtil implements Serializable {
    public static final Log LOGGER = LogFactory.getLog(DecisionDataSave.class);
    public static final Log orderJsonLogger = LogFactory.getLog("engine-order-json");


    /**
     * 获取字段名称
     *
     * @param decisionVo
     * @return
     */
    public static String getOrderNo(DecisionVo decisionVo) {
        List<Column> columnList = decisionVo.getColumns();
        for (Column column : columnList) {
            if (column.getColumnCode().equals("sys_order_no")) {
                return column.getColumnValue().toString();
            }

        }
        return null;
    }

    public static void main(String[] args) {
//        try {
//            String decisionStr = "{\"merchantCode\":\"fqgj\",\"appCode\":\"sdzz\",\"eventCode\":\"sdxl_regular_first_model\",\"flowNo\":\"b51b7b978eb243c4a66973c5bd052cc6\",\"columns\":[{\"columnCode\":\"loc_triple_carrier_is_approve\",\"columnValue\":1},{\"columnCode\":\"loc_triple_carrier_name\",\"columnValue\":\"苗丽婷\"},{\"columnCode\":\"loc_triple_carrier_available_balance\",\"columnValue\":0.0},{\"columnCode\":\"loc_triple_carrier_network_year\",\"columnValue\":\"2012\"},{\"columnCode\":\"loc_triple_carrier_network_month_num\",\"columnValue\":69},{\"columnCode\":\"loc_triple_carrier_merchant_hit_jdb_num\",\"columnValue\":0},{\"columnCode\":\"loc_triple_carrier_merchant_hit_overdue_num\",\"columnValue\":0},{\"columnCode\":\"loc_triple_carrier_merchant_last_two_month_hit_overdue_num\",\"columnValue\":0},{\"columnCode\":\"loc_triple_carrier_merchant_last_two_month_risk_num\",\"columnValue\":1},{\"columnCode\":\"loc_triple_carrier_high_frequency_merchant_num\",\"columnValue\":0},{\"columnCode\":\"loc_triple_carrier_high_frequency_merchant_risk_num\",\"columnValue\":0},{\"columnCode\":\"loc_triple_carrier_record_num\",\"columnValue\":4330},{\"columnCode\":\"loc_triple_carrier_record_month_num\",\"columnValue\":6},{\"columnCode\":\"loc_triple_carrier_flow_result\",\"columnValue\":5.09084891263643},{\"columnCode\":\"loc_triple_carrier_top_ten_not_in_contact\",\"columnValue\":1},{\"columnCode\":\"loc_triple_carrier_high_frequency_normal_records_num\",\"columnValue\":70},{\"columnCode\":\"loc_triple_carrier_flow_sampleSD_noLog\",\"columnValue\":176.94481248871543},{\"columnCode\":\"loc_triple_carrier_night_call_num\",\"columnValue\":4},{\"columnCode\":\"loc_triple_carrier_night_called_num\",\"columnValue\":7},{\"columnCode\":\"loc_triple_carrier_called_mobile_total_num\",\"columnValue\":400},{\"columnCode\":\"loc_triple_carrier_call_and_called_mobile_total_num\",\"columnValue\":549},{\"columnCode\":\"loc_triple_carrier_call_and_called_mobile_total_num_percent\",\"columnValue\":\"25.0\"},{\"columnCode\":\"loc_triple_carrier_silent_gt_3d\",\"columnValue\":0},{\"columnCode\":\"loc_triple_carrier_pass_borrow_num\",\"columnValue\":0},{\"columnCode\":\"loc_triple_carrier_reject_borrow_num\",\"columnValue\":2},{\"columnCode\":\"loc_triple_carrier_only_reject_borrow_num\",\"columnValue\":2},{\"columnCode\":\"loc_triple_contact_in_carrier\",\"columnValue\":330},{\"columnCode\":\"loc_triple_contact_is_approve\",\"columnValue\":1},{\"columnCode\":\"loc_triple_contact_hit_jdb_num\",\"columnValue\":0},{\"columnCode\":\"loc_triple_contact_reject_borrow_num\",\"columnValue\":4},{\"columnCode\":\"loc_triple_contact_call_reject_borrow_num\",\"columnValue\":1},{\"columnCode\":\"loc_triple_contact_have_first_emergent\",\"columnValue\":1},{\"columnCode\":\"loc_triple_contact_have_second_emergent\",\"columnValue\":1},{\"columnCode\":\"loc_borrow_max_overdue_day\",\"columnValue\":1},{\"columnCode\":\"loc_borrow_last_is_overdue\",\"columnValue\":1},{\"columnCode\":\"loc_borrow_last_overdue_day\",\"columnValue\":1},{\"columnCode\":\"loc_borrow_last_overdue_normal_paynum\",\"columnValue\":0},{\"columnCode\":\"loc_borrow_last_two_bill_status\"},{\"columnCode\":\"loc_borrow_last_real_capital\",\"columnValue\":1000.0},{\"columnCode\":\"loc_borrow_last_bill_status\",\"columnValue\":4},{\"columnCode\":\"loc_borrow_back_paid_count\",\"columnValue\":1},{\"columnCode\":\"loc_triple_ collection_note\",\"columnValue\":7},{\"columnCode\":\"loc_borrow_type\",\"columnValue\":1},{\"columnCode\":\"loc_borrow_from\",\"columnValue\":\"openapi_rong360\"},{\"columnCode\":\"loc_borrow_druation\",\"columnValue\":2},{\"columnCode\":\"loc_borrow_apply_hour\",\"columnValue\":15},{\"columnCode\":\"loc_user_is_miss\",\"columnValue\":0},{\"columnCode\":\"loc_user_is_frost\",\"columnValue\":0},{\"columnCode\":\"loc_user_is_pass\",\"columnValue\":0},{\"columnCode\":\"loc_user_real_name\",\"columnValue\":\"苗丽婷\"},{\"columnCode\":\"loc_user_gps_address\",\"columnValue\":\"辽宁省本溪市桓仁满族自治县民族街M9号\"},{\"columnCode\":\"loc_user_profession\",\"columnValue\":\"工薪族\"},{\"columnCode\":\"loc_user_marriage_status\",\"columnValue\":\"离异\"},{\"columnCode\":\"loc_user_company_name\",\"columnValue\":\"桓仁福德殡仪服务中心有限公司\"},{\"columnCode\":\"loc_user_company_length\",\"columnValue\":28},{\"columnCode\":\"loc_user_is_black\",\"columnValue\":0},{\"columnCode\":\"loc_user_birthday_year\",\"columnValue\":1967},{\"columnCode\":\"loc_user_sex\",\"columnValue\":\"女\"},{\"columnCode\":\"loc_user_device\",\"columnValue\":\"android\"},{\"columnCode\":\"loc_user_xuexin_status\"},{\"columnCode\":\"loc_user_have_xuexin\",\"columnValue\":0},{\"columnCode\":\"loc_user_xuexin_primary_entrance_date\",\"columnValue\":\"\"},{\"columnCode\":\"loc_user_mobile\",\"columnValue\":\"15041494899\"},{\"columnCode\":\"loc_user_bank_card_phone_num\",\"columnValue\":\"15041494899\"},{\"columnCode\":\"loc_user_education\",\"columnValue\":\"大专\"},{\"columnCode\":\"loc_user_max_income\",\"columnValue\":4800},{\"columnCode\":\"loc_user_qq_used_num\",\"columnValue\":1},{\"columnCode\":\"loc_user_jdb_hit_num\",\"columnValue\":0},{\"columnCode\":\"loc_user_mechine_app_num\",\"columnValue\":0},{\"columnCode\":\"loc_triple_tongdun_score\",\"columnValue\":50},{\"columnCode\":\"loc_triple_tongdun_msg\",\"columnValue\":\"3个月内身份证关联多个申请信息:[\\\"3个月身份证关联邮箱数：1\\\",\\\"3个月身份证关联手机号数：2\\\"]\\u003cbr\\u003e3个月内申请人主要借贷信息在多个网贷平台进行借款申请\\u003cbr\\u003e3个月内身份证在多个网贷平台进行借款申请:[\\\"互联网金融门户:1\\\",\\\"一般消费分期平台:12\\\",\\\"银行消费金融公司:1\\\",\\\"小额贷款公司:1\\\",\\\"P2P网贷:9\\\",\\\"大型消费金融公司:1\\\"]\\u003cbr\\u003e3个月内手机号在多个网贷平台进行借款申请:[\\\"互联网金融门户:1\\\",\\\"一般消费分期平台:11\\\",\\\"银行消费金融公司:1\\\",\\\"小额贷款公司:1\\\",\\\"P2P网贷:8\\\",\\\"大型消费金融公司:1\\\"]\\u003cbr\\u003e6个月内申请人在多个平台申请借款:[\\\"一般消费分期平台:16\\\",\\\"互联网金融门户:1\\\",\\\"银行消费金融公司:1\\\",\\\"小额贷款公司:1\\\",\\\"P2P网贷:18\\\",\\\"大型消费金融公司:1\\\"]\\u003cbr\\u003e12个月内申请人在多个平台申请借款:[\\\"一般消费分期平台:16\\\",\\\"互联网金融门户:1\\\",\\\"银行消费金融公司:2\\\",\\\"小额贷款公司:1\\\",\\\"P2P网贷:23\\\",\\\"大型消费金融公司:1\\\"]\\u003cbr\\u003e7天内申请人在多个平台申请借款:[\\\"互联网金融门户:1\\\",\\\"一般消费分期平台:2\\\",\\\"P2P网贷:3\\\"]\\u003cbr\\u003e1个月内申请人在多个平台申请借款:[\\\"一般消费分期平台:6\\\",\\\"互联网金融门户:1\\\",\\\"P2P网贷:4\\\"]\\u003cbr\\u003e3个月内申请人在多个平台申请借款:[\\\"互联网金融门户:1\\\",\\\"一般消费分期平台:12\\\",\\\"银行消费金融公司:1\\\",\\\"小额贷款公司:1\\\",\\\"P2P网贷:9\\\",\\\"大型消费金融公司:1\\\"]\\u003cbr\\u003e\"},{\"columnCode\":\"loc_triple_tongdun_last_three_month_apply_num\",\"columnValue\":25},{\"columnCode\":\"loc_triple_tongdun_last_one_month_apply_num\",\"columnValue\":11},{\"columnCode\":\"loc_triple_tongdun_one_month_device_apply_num\",\"columnValue\":0},{\"columnCode\":\"loc_triple_tongdun_last_six_month_apply_num\",\"columnValue\":38},{\"columnCode\":\"loc_triple_zmxy_score\",\"columnValue\":600},{\"columnCode\":\"loc_triple_zmxy_is_approve\",\"columnValue\":1},{\"columnCode\":\"loc_triple_zmxy_apply_score\",\"columnValue\":100},{\"columnCode\":\"loc_triple_zmxy_score_sdzz_oldc_transform_v1\",\"columnValue\":0.09444457713455387},{\"columnCode\":\"loc_triple_zmxy_score_sdzz_oldc_transform_v2\",\"columnValue\":0.04460514541911113},{\"columnCode\":\"loc_triple_zmxy_score_change\",\"columnValue\":-16},{\"columnCode\":\"loc_triple_tongcheng_is_black\",\"columnValue\":0},{\"columnCode\":\"sys_order_no\",\"columnValue\":\"2017101815100V000TN\"},{\"columnCode\":\"sys_user_no\",\"columnValue\":\"304935374\"},{\"columnCode\":\"sys_apply_data\",\"columnValue\":\"2017-10-18 15:06:10\"},{\"columnCode\":\"sys_created_data\",\"columnValue\":\"2017-10-18 15:06:10\"},{\"columnCode\":\"sys_from\",\"columnValue\":\"openapi_rong360\"},{\"columnCode\":\"sys_is_new\",\"columnValue\":0},{\"columnCode\":\"sys_last_overdue\",\"columnValue\":1},{\"columnCode\":\"sys_mobile\",\"columnValue\":\"15041494899\"},{\"columnCode\":\"sys_education\",\"columnValue\":\"大专\"},{\"columnCode\":\"sys_marriage\",\"columnValue\":\"离异\"},{\"columnCode\":\"sys_profession\",\"columnValue\":\"工薪族\"},{\"columnCode\":\"sys_incom\",\"columnValue\":\"4800~4800\"},{\"columnCode\":\"sys_company_address\",\"columnValue\":\"北京市 北京市 东城区 桓仁镇天泰花园8a写字楼3楼\"},{\"columnCode\":\"sys_live_address\",\"columnValue\":\"北京市 北京市 东城区 辽宁省本溪市桓仁满族自治县黎明街12栋2单元602\"},{\"columnCode\":\"sys_real_name\",\"columnValue\":\"苗丽婷\"},{\"columnCode\":\"sys_identity_no\",\"columnValue\":\"210522196705220049\"},{\"columnCode\":\"sys_bank_no\",\"columnValue\":\"6222080706000180603\"},{\"columnCode\":\"sys_bank_name\",\"columnValue\":\"中国工商银行\"},{\"columnCode\":\"sys_qq\",\"columnValue\":\"476800290\"},{\"columnCode\":\"sys_email\",\"columnValue\":\"\"},{\"columnCode\":\"sys_client\"},{\"columnCode\":\"sys_work_time\",\"columnValue\":\"5\"},{\"columnCode\":\"sys_company_name\",\"columnValue\":\"桓仁福德殡仪服务中心有限公司\"},{\"columnCode\":\"sys_company_phone\"},{\"columnCode\":\"sys_live_time\"},{\"columnCode\":\"sys_contact_relation_1\",\"columnValue\":\"父母\"},{\"columnCode\":\"sys_contact_mobile_1\",\"columnValue\":\"18641453657\"},{\"columnCode\":\"sys_contact_name_1\",\"columnValue\":\"邓福荣\"},{\"columnCode\":\"sys_contact_relation_2\",\"columnValue\":\"姐妹\"},{\"columnCode\":\"sys_contact_mobile_2\",\"columnValue\":\"13904242100\"},{\"columnCode\":\"contact_name_2\",\"columnValue\":\"苗丽新\"},{\"columnCode\":\"sys_wifi\",\"columnValue\":\"\"},{\"columnCode\":\"sys_ip\",\"columnValue\":\"223.102.223.249\"},{\"columnCode\":\"rule\",\"columnValue\":\"\"},{\"columnCode\":\"sys_gps_address\",\"columnValue\":\"辽宁省本溪市桓仁满族自治县民族街M9号\"},{\"columnCode\":\"sys_gps_lat\",\"columnValue\":41.271957},{\"columnCode\":\"sys_gps_lng\",\"columnValue\":125.356282},{\"columnCode\":\"sys_gps_province\",\"columnValue\":\"辽宁\"},{\"columnCode\":\"sys_gps_city\",\"columnValue\":\"本溪\"},{\"columnCode\":\"sys_gps_area\",\"columnValue\":\"桓仁满族自治县民族街M9号\"}]}";
//            DecisionVo decisionVo = JSONUtils.json2pojo(decisionStr, DecisionVo.class);
//            String riskApiResultStr = "{\"code\":\"0\",\"flowNo\":\"b51b7b978eb243c4a66973c5bd052cc6\",\"policySetId\":21,\"finalResult\":{\"executorId\":90,\"eventId\":18,\"executorType\":2,\"version\":\"4\",\"executorDecisionResult\":{\"decisionResult\":\"Pass\",\"decisionType\":3,\"decisionPriority\":2},\"policyList\":[{\"policyType\":1,\"strategyName\":\"订单规则组\",\"strategyId\":465,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WORST\",\"hitRules\":[]},{\"policyType\":1,\"strategyName\":\"用户规则组\",\"strategyId\":466,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WORST\",\"hitRules\":[]},{\"policyType\":1,\"strategyName\":\"运营商规则组\",\"strategyId\":467,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WORST\",\"hitRules\":[]},{\"policyType\":1,\"strategyName\":\"通讯录规则组\",\"strategyId\":468,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WORST\",\"hitRules\":[]},{\"policyType\":1,\"strategyName\":\"三方规则组\",\"strategyId\":469,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WORST\",\"hitRules\":[]},{\"policyType\":1,\"strategyName\":\"用户权重规则组\",\"strategyId\":470,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WEIGHT\",\"strategyScore\":0,\"weightRangeResults\":[{\"start\":0.0,\"end\":0.0,\"decision\":\"Review\",\"decisionType\":2,\"priority\":1},{\"start\":0.0,\"end\":20.0,\"decision\":\"Reject\",\"decisionType\":1,\"priority\":3}],\"hitRules\":[]},{\"policyType\":2,\"strategyName\":\"模型1评分卡\",\"strategyId\":471,\"scoreCard\":{\"initScore\":535.0,\"finalScore\":654.66,\"columnName\":\"sdxl_regular_frist_model_grade\"},\"hitRules\":[{\"ruleName\":\"borrow:最近一次订单的逾期天数\",\"ruleId\":3842,\"cardScore\":16.94},{\"ruleName\":\"triple_carrier:通话次数的波动性\",\"ruleId\":3844,\"cardScore\":-23.77},{\"ruleName\":\"triple_contact:通讯录用户拒绝数\",\"ruleId\":3845,\"cardScore\":5.74},{\"ruleName\":\"triple_tongdun:3个月内手机号在多个网贷平台进行借款申请的总次数\",\"ruleId\":3849,\"cardScore\":-11.25},{\"ruleName\":\"triple_zmxy:芝麻分\",\"ruleId\":3850,\"cardScore\":132.0}]},{\"policyType\":1,\"strategyName\":\"评分规则组\",\"strategyId\":472,\"strategyDecision\":\"Pass\",\"priority\":2,\"finalDecisionType\":3,\"strategyMode\":\"WORST\",\"hitRules\":[{\"ruleName\":\"borrow_history:模型分\\u003c670,老客上笔订单逾期≤3\",\"ruleId\":3866,\"decision\":\"Pass\",\"decisionType\":3,\"priority\":2}]},{\"policyType\":2,\"strategyName\":\"老客v9模型评分卡\",\"strategyId\":473,\"scoreCard\":{\"initScore\":745.47,\"finalScore\":661.09,\"columnName\":\"code_v9_grade\"},\"hitRules\":[{\"ruleName\":\"back_paid_count:历史放款次数\",\"ruleId\":3869,\"cardScore\":2.13},{\"ruleName\":\"max_overdue_day:历史最大逾期天数\",\"ruleId\":3871,\"cardScore\":-9.42},{\"ruleName\":\"last_is_overdue:上笔订单属否逾期\",\"ruleId\":3872,\"cardScore\":-11.96},{\"ruleName\":\"xuexin_status:学信状态\",\"ruleId\":3873,\"cardScore\":-19.95},{\"ruleName\":\"marriage_status:婚姻状态\",\"ruleId\":3876,\"cardScore\":-14.47},{\"ruleName\":\"reject_borrow_num:通讯录拒绝数\",\"ruleId\":3883,\"cardScore\":-8.16},{\"ruleName\":\"call_reject_borrow_num:通话记录拒绝数\",\"ruleId\":3884,\"cardScore\":-2.76},{\"ruleName\":\"first_emergent_is_contact:第一联系人是否在通讯录\",\"ruleId\":3885,\"cardScore\":6.94},{\"ruleName\":\"second_emergent_is_contact:第二联系人是否在通讯录\",\"ruleId\":3886,\"cardScore\":5.36},{\"ruleName\":\"zmxy_apply_score:芝麻欺诈分\",\"ruleId\":3887,\"cardScore\":3.72},{\"ruleName\":\"top_ten_is_not_contact_num:通讯前十不在通讯录个数\",\"ruleId\":3889,\"cardScore\":-1.23},{\"ruleName\":\"carrier_mobile_called_and_call_percent:呼入呼出比例数\",\"ruleId\":3893,\"cardScore\":-8.75},{\"ruleName\":\"carrierOnlyRejectBorrowNum:运营商只有拒绝订单人数\",\"ruleId\":3895,\"cardScore\":-8.26},{\"ruleName\":\"last_real_capital:最近一笔订单申请金额\",\"ruleId\":3897,\"cardScore\":13.22},{\"ruleName\":\"hit_jdb_num:是否命中借贷宝\",\"ruleId\":3898,\"cardScore\":15.52},{\"ruleName\":\"tongdun_one_mouth:铜盾一个月多平台借贷次数\",\"ruleId\":3899,\"cardScore\":-6.27},{\"ruleName\":\"tongdun_three_mouth：铜盾三个月多平台借贷次数\",\"ruleId\":3900,\"cardScore\":-7.25},{\"ruleName\":\"zm_score:芝麻分\",\"ruleId\":3903,\"cardScore\":-25.69},{\"ruleName\":\"collection_note:催收备注\",\"ruleId\":3904,\"cardScore\":-13.58},{\"ruleName\":\"contact_in_carrier_num:有通话记录的通讯录个数\",\"ruleId\":3905,\"cardScore\":6.48}]}]},\"verifyResult\":{\"executorId\":87,\"eventId\":18,\"executorType\":1,\"version\":\"9\",\"executorDecisionResult\":{\"decisionResult\":\"Pass\",\"decisionType\":3,\"decisionPriority\":2},\"policyList\":[{\"policyType\":1,\"strategyName\":\"订单规则组\",\"strategyId\":437,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WORST\",\"hitRules\":[]},{\"policyType\":1,\"strategyName\":\"用户规则组\",\"strategyId\":438,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WORST\",\"hitRules\":[]},{\"policyType\":1,\"strategyName\":\"运营商规则组\",\"strategyId\":439,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WORST\",\"hitRules\":[]},{\"policyType\":1,\"strategyName\":\"通讯录规则组\",\"strategyId\":440,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WORST\",\"hitRules\":[]},{\"policyType\":1,\"strategyName\":\"三方规则组\",\"strategyId\":441,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WORST\",\"hitRules\":[]},{\"policyType\":1,\"strategyName\":\"用户权重规则组\",\"strategyId\":442,\"strategyDecision\":\"Review\",\"priority\":1,\"finalDecisionType\":2,\"strategyMode\":\"WEIGHT\",\"strategyScore\":0,\"weightRangeResults\":[{\"start\":0.0,\"end\":0.0,\"decision\":\"Review\",\"decisionType\":2,\"priority\":1},{\"start\":0.0,\"end\":20.0,\"decision\":\"Reject\",\"decisionType\":1,\"priority\":3}],\"hitRules\":[]},{\"policyType\":2,\"strategyName\":\"模型1评分卡\",\"strategyId\":443,\"scoreCard\":{\"initScore\":535.0,\"finalScore\":654.66,\"columnName\":\"sdxl_regular_frist_model_grade\"},\"hitRules\":[{\"ruleName\":\"borrow:最近一次订单的逾期天数\",\"ruleId\":3478,\"cardScore\":16.94},{\"ruleName\":\"triple_carrier:通话次数的波动性\",\"ruleId\":3480,\"cardScore\":-23.77},{\"ruleName\":\"triple_contact:通讯录用户拒绝数\",\"ruleId\":3481,\"cardScore\":5.74},{\"ruleName\":\"triple_tongdun:3个月内手机号在多个网贷平台进行借款申请的总次数\",\"ruleId\":3485,\"cardScore\":-11.25},{\"ruleName\":\"triple_zmxy:芝麻分\",\"ruleId\":3486,\"cardScore\":132.0}]},{\"policyType\":1,\"strategyName\":\"评分规则组\",\"strategyId\":444,\"strategyDecision\":\"Pass\",\"priority\":2,\"finalDecisionType\":3,\"strategyMode\":\"WORST\",\"hitRules\":[{\"ruleName\":\"borrow_history:模型分\\u003c670,老客上笔订单逾期≤3\",\"ruleId\":3502,\"decision\":\"Pass\",\"decisionType\":3,\"priority\":2}]},{\"policyType\":2,\"strategyName\":\"老客v9模型评分卡\",\"strategyId\":445,\"scoreCard\":{\"initScore\":745.47,\"finalScore\":661.09,\"columnName\":\"code_v9_grade\"},\"hitRules\":[{\"ruleName\":\"back_paid_count:历史放款次数\",\"ruleId\":3505,\"cardScore\":2.13},{\"ruleName\":\"max_overdue_day:历史最大逾期天数\",\"ruleId\":3507,\"cardScore\":-9.42},{\"ruleName\":\"last_is_overdue:上笔订单属否逾期\",\"ruleId\":3508,\"cardScore\":-11.96},{\"ruleName\":\"xuexin_status:学信状态\",\"ruleId\":3509,\"cardScore\":-19.95},{\"ruleName\":\"marriage_status:婚姻状态\",\"ruleId\":3512,\"cardScore\":-14.47},{\"ruleName\":\"reject_borrow_num:通讯录拒绝数\",\"ruleId\":3519,\"cardScore\":-8.16},{\"ruleName\":\"call_reject_borrow_num:通话记录拒绝数\",\"ruleId\":3520,\"cardScore\":-2.76},{\"ruleName\":\"first_emergent_is_contact:第一联系人是否在通讯录\",\"ruleId\":3521,\"cardScore\":6.94},{\"ruleName\":\"second_emergent_is_contact:第二联系人是否在通讯录\",\"ruleId\":3522,\"cardScore\":5.36},{\"ruleName\":\"zmxy_apply_score:芝麻欺诈分\",\"ruleId\":3523,\"cardScore\":3.72},{\"ruleName\":\"top_ten_is_not_contact_num:通讯前十不在通讯录个数\",\"ruleId\":3525,\"cardScore\":-1.23},{\"ruleName\":\"carrier_mobile_called_and_call_percent:呼入呼出比例数\",\"ruleId\":3529,\"cardScore\":-8.75},{\"ruleName\":\"carrierOnlyRejectBorrowNum:运营商只有拒绝订单人数\",\"ruleId\":3531,\"cardScore\":-8.26},{\"ruleName\":\"last_real_capital:最近一笔订单申请金额\",\"ruleId\":3533,\"cardScore\":13.22},{\"ruleName\":\"hit_jdb_num:是否命中借贷宝\",\"ruleId\":3534,\"cardScore\":15.52},{\"ruleName\":\"tongdun_one_mouth:铜盾一个月多平台借贷次数\",\"ruleId\":3535,\"cardScore\":-6.27},{\"ruleName\":\"tongdun_three_mouth：铜盾三个月多平台借贷次数\",\"ruleId\":3536,\"cardScore\":-7.25},{\"ruleName\":\"zm_score:芝麻分\",\"ruleId\":3539,\"cardScore\":-25.69},{\"ruleName\":\"collection_note:催收备注\",\"ruleId\":3540,\"cardScore\":-13.58},{\"ruleName\":\"contact_in_carrier_num:有通话记录的通讯录个数\",\"ruleId\":3541,\"cardScore\":6.48}]}]}}";
//            RiskApiResult riskApiResult = JSONUtils.json2pojo(riskApiResultStr, RiskApiResult.class);
//
//            Order order = setSystemColumn(decisionVo, riskApiResult, 2L, 1L);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }

    }
}
